package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户道具对象 user_props
 *
 * @author ruoyi
 * @date 2025-01-17
 */
public class UserProps extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户道具记录 */
    private Long userPropsId;

    /** 用户 ID */
    @Excel(name = "用户 ID")
    private Long userId;

    /** 道具 ID */
    @Excel(name = "道具 ID")
    private Long propsId;

    /** 当前道具等级 */
    @Excel(name = "当前道具等级")
    private Long currentLv;

    /** 拥有数量 */
    @Excel(name = "拥有数量")
    private Long propsCount;

    /** 最新获得时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最新获得时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date newTime;

    public void setUserPropsId(Long userPropsId)
    {
        this.userPropsId = userPropsId;
    }

    public Long getUserPropsId()
    {
        return userPropsId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setPropsId(Long propsId)
    {
        this.propsId = propsId;
    }

    public Long getPropsId()
    {
        return propsId;
    }
    public void setCurrentLv(Long currentLv)
    {
        this.currentLv = currentLv;
    }

    public Long getCurrentLv()
    {
        return currentLv;
    }
    public void setPropsCount(Long propsCount)
    {
        this.propsCount = propsCount;
    }

    public Long getPropsCount()
    {
        return propsCount;
    }
    public void setNewTime(Date newTime)
    {
        this.newTime = newTime;
    }

    public Date getNewTime()
    {
        return newTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("userPropsId", getUserPropsId())
                .append("userId", getUserId())
                .append("propsId", getPropsId())
                .append("currentLv", getCurrentLv())
                .append("propsCount", getPropsCount())
                .append("newTime", getNewTime())
                .append("createTime", getCreateTime())
                .toString();
    }
}
